package com.lagou.service;

import com.lagou.domain.ResourceCategory;
import com.lagou.domain.Role;
import com.lagou.domain.RoleMenuVo;
import com.lagou.domain.RoleResourceVo;

import java.util.List;

public interface RoleService {

    //查询角色
    public List<Role> findAllRole(Role role);

    //添加角色
    public void saveRole(Role role);

    //修改角色
    public void updateRole(Role role);


    //根据ID查询角色关联菜单
    public List<Integer> findMenuByRoleId(Integer roleId);

    //角色菜单关联
    public void RoleContextMenu(RoleMenuVo roleMenuVo);

    //删除角色
    public void deleteRole(Integer id);

    //根据脚色获取资源信息
    public List<ResourceCategory> findResourceListByRoleId(Integer rid);

    //
    public void roleContextResource(RoleResourceVo roleResourceVo);
}
